<?php
Route::group(['domain'=>env('MANAGE_DOMAIN'),'namespace'=>'App\Http\Controllers\Manage\User'],function(){

    Route::get('login','LoginController@login');
    Route::post('login/dologin','LoginController@dologin');

});

Route::group(['domain'=>env('VOICE_CLASS'),'namespace'=>'App\Http\Controllers\ClassVoice\Voice'],function(){

    Route::any('voice/index','ClassController@index');
    Route::any('voice/voiceClassList','ClassController@voiceClassList');
    Route::any('voice/voiceClassContent','ClassController@voiceClassContent');
    Route::any('voice/voiceClassShare','ClassController@voiceClassShare');
    Route::any('voice/voiceIndex','ClassController@voiceIndex');
    Route::any('voice/voiceUnpaid','ClassController@voiceUnpaid');
    Route::any('voice/pay','ClassController@pay');
    Route::any('voice/payCallBack','ClassController@payCallBack');

    Route::any('{slug}','ClassController@index')->where('slug', '(.*)?');;

});

